void convFunc (
        in float2            coord       : TEXCOORD0,
        uniform samplerRECT  dataArr     : TEXUNIT0,
        uniform samplerRECT  convFuncArr : TEXUNIT1,
        out float4           output      : COLOR

)
{
    float4 data = texRECT(dataArr,coord);
    float4 conv;
    int convWidth  = 2;
    int convHeight = 2;
    for (int u = 0;u<convWidth;u++) {
        for (int v = 0;v<convHeight;v++) {
            conv = texRECT(convFuncArr,float2(u,v));
            output.r    = data.r + conv.r;
            output.g    = data.g + conv.g;
            output.b    = data.b + conv.b;
            output.a    = data.a + conv.a;
        }
    }
}
